<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>定位</title>
		<style type="text/css">
			/* 定位盒子的经典应用:大相小绝 */
			*{
				margin: 0;
				padding: 0;
			}
			.box{
				width: 500px;
				height: 500px;
				background-color: aqua;
				position: relative;    /* relative:相对定位 */
				/* left: 左  right:右  top:上   bottom:下 */
				left: 100px;
				bottom: 100px;
				
			}
			.n{
				width: 500px;
				height: 500px;
				background-color: aquamarine;
				position: absolute;      		/* absolute:绝对定位 */
				/* position: fixed;   *//* fixed:固定定位 */
				top: 400px;
				right: 300px;
			}
			
		</style>
	</head>
	<body>
		<div class="box"></div>
		<div class="n"></div>
		
	</body>
</html>
